#ifndef FILESTREAM_H
#define FILESTREAM_H

// Libraries
#include <fstream>

// Classes
class FileClass {

	public:

		FileClass();
		~FileClass();

		int OpenForWrite(const char *TFilename);
		int OpenForRead(const char *TFilename);
		void Close();

		void WriteChar(char TData);
		void WriteInt(int TData);
		void WriteStruct(void *TData, int TSize);
		void WriteString(const char *TData);

		char ReadChar();
		int ReadInt();
		void ReadStruct(void *TData, int TSize);
		void ReadString(char *TData);
		
	private:

		std::fstream File;

};

#endif
